home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Extras / IFF / IFF_Forms / ILBM.XBMI.doc < prev    next >
Encoding:
Text File  |  1993-03-01  |  2.7 KB  |  65 lines

  1. eXtended BitMap Information (Soft-Logik)
  2.  
  3. Chunk XBMI for FORM ILBM
  4. ========================
  5.  
  6. Submitted by Dan Weiss, Deron Kazmaier, and Gary Knight (8/29/91)
  7.  
  8. Chunk ID: "XBMI" (eXtended BitMap Information)
  9. Description:  This chunk will hold the horizontal and vertical dots per inch,
  10. and the picture type.  Each entry is one word (two bytes) in length for a total
  11. chunk length of three words.  The first word holds the picture type.  Currently
  12. we have defined 6 types of pictures:
  13.  
  14. #define ILBM_PAL        0       /* BODY data = indexes into the palette (CMAP)
  15.                                  * numcolors = 1<<depth;
  16.                                  */
  17.  
  18. #define ILBM_GREY       1       /* BODY =  grayscale values
  19.                                  * Bits per sample = number of bitplanes.
  20.                                  * Samples per pixel = 1.
  21.                                  * black = 0, white = (1<<depth)-1;
  22.                                  */
  23.  
  24. #define ILBM_RGB        2       /* BODY data = red, green, and blue values.
  25.                                  * Bits per sample = depth/3.
  26.                                  * Samples per pixel = 3.
  27.                                  */
  28.  
  29. #define ILBM_RGBA       3       /* BODY data = red, green, blue, and alpha
  30.                                  * channel values.
  31.                                  * Bits per sample = depth/4.
  32.                                  * Samples per pixel = 4.
  33.                                  */
  34.  
  35. #define ILBM_CMYK       4       /* BODY data = cyan, magenta, yellow, and black
  36.                                  * values.
  37.                                  * Bits per sample = depth/4.
  38.                                  * Samples per pixel = 4.
  39.                                  */
  40.  
  41. #define ILBM_CMYKA      5       /* BODY data = cyan, magenta, yellow, black,
  42.                                  * and alpha channel values.
  43.                                  * Bits per sample = depth/5.
  44.                                  * Samples per pixel = 5.
  45.                                  */
  46.  
  47. #define ILBM_BW         6       /* BODY data = black and white bits.
  48.                                  * Bits per sample = 1.
  49.                                  * Samples per pixel = 1.
  50.                                  * white = 0, black = 1.
  51.                                  */
  52.  
  53. The second and third words hold the number of dots per inch in the horizontal
  54. and vertical directions respectively.
  55.  
  56. Example:
  57.  
  58.                         XBMI            ;chunk ID
  59.                         00000006        ;chunk length (6 bytes)
  60.                         0002            ;picture type (2==ILBM_RGB)
  61.                         012C            ;x dpi (300)
  62.                         012C            ;y dpi (300)
  63.  
  64.  
  65.